package com.ctg.itrdc.imageconsole.data.config.dao;

import java.util.List;

import com.ctg.itrdc.imageconsole.data.entity.ImageConfig;
import com.ctg.itrdc.imageconsole.data.entity.ImageConfigName;
import com.ctg.itrdc.imageconsole.data.entity.ImageConfigSet;
import com.ctg.itrdc.imageconsole.data.entity.ImageConfigVersion;
import com.ctg.itrdc.paspsdk.common.entity.PageInfo;
import com.ctg.itrdc.paspsdk.data.dao.IBaseCacheDao;
import com.ctg.itrdc.paspsdk.data.dao.IBaseDao;

public interface IImageConfigDao extends IBaseCacheDao, IBaseDao {

	PageInfo<ImageConfig> jdbcFindPageInfo(Long dockerImageTagId, int currentPage, int perPageNum);

	void addImageConfig(ImageConfigSet image);

	List<ImageConfig> checkImageConfigVersion(Long dockerImageTagId, String configVersion,String configName);

	List<ImageConfigName> queryImageConfigNameByImageId(Long dockerImageTagId);

	List<ImageConfigVersion> queryImageConfigVersion(Long dockerImageTagId, String configName);

	List<ImageConfig> queryImageConfigByVersion(Long dockerImageTagId, String configName, String configVersion);

	PageInfo<ImageConfig> jdbcFindPageInfo(String configName, Long dockerImageTagId, int pageNum, int pageSize);

}
